package com.eco.fanliapp.utils;


import com.eco.fanliapp.common.constant.ApiEnum;

/**
 * @author zhuchao
 * @create 2019-09-25 14:48
 */
public class MessageUtils {
//	private static String httpUrl = "http://39.96.93.222:8080/eums/sms/utf8/send.do?";
//	private static String name = "tckkyzm";
//	private static String password = "4t7fgf00";
/*
	public static void main(String[] args) {

		String phone = "15117916955";
		String content = "国庆将至，注意防火防盗安全隐患！";

		String mesage = sendMesage(phone, content);

	}
*/

//	public static String sendMesage(String phone,String content){
//		String seed = DateFormatUtils.getNowDateDay2();
//		String key = MD5Utils.createMD5(MD5Utils.createMD5(ApiEnum.DUOKE_PWD) + seed);
//
//		StringBuffer httpArg = new StringBuffer();
//		httpArg.append("name=").append(ApiEnum.USERNAME).append("&");
//		httpArg.append("seed=").append(seed).append("&");
//		httpArg.append("key=").append(key).append("&");
//		httpArg.append("dest=").append(phone).append("&");
//		httpArg.append("content=").append(ApiEnum.MESHEAD + content);
//		String result = HttpUtils.sendGet(ApiEnum.HTTPURL, httpArg.toString());
//		return result;
//	}
}
